﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace GiMessServer
{
    public class AuthInfo
    {
        //private bool logged = false;

        public string UserName  { get; set; }
        public string FirstName { get; set; }
        public string LastName  { get; set; }
        public bool   Logged    { get; private set; }

        public AuthInfo()
        {
            Logged = false;
        }

        public AuthInfo(string userName)
        {
            UserName   = userName;
            FirstName  = Database.GetFirstName(userName);
            LastName   = Database.GetLastName(userName);
            Logged     = true;
        }
    }
}
